package com.gedeshidai.shumadevelop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gedeshidai.shumadevelop.common.BaseResponse;
import com.gedeshidai.shumadevelop.model.dto.product.ProductAddRequest;
import com.gedeshidai.shumadevelop.model.dto.product.ProductDetailUpdateRequest;
import com.gedeshidai.shumadevelop.model.entity.ProductDetail;
import com.gedeshidai.shumadevelop.model.entity.User;
import com.gedeshidai.shumadevelop.model.vo.ProductPreviewVO;
import com.gedeshidai.shumadevelop.model.vo.SelectDetailVO;
import com.gedeshidai.shumadevelop.model.entity.User;

import javax.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author Romdon
* @description 针对表【products_detail(商品详情信息表)】的数据库操作Service
* @createDate 2024-06-17 08:28:14
*/
public interface ProductDetailService extends IService<ProductDetail> {
    boolean saveProduct(ProductAddRequest detailProductAddRequest, HttpServletRequest request);

    boolean updateProduct(ProductDetailUpdateRequest updateRequest, User user);

    /**
     * 根据id查询商品预览信息
     * @param id
     * @return
     */
    ProductPreviewVO getPreviewById(Long id);
}
